package com.yan.club.apply.mapper;

import com.yan.club.apply.model.ClubApply;
import com.yan.club.apply.model.ClubApplyExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 彦
 * @since 2024/3/18 9:02
 */
@Mapper
public interface ClubApplyMapper {
    long countByExample(ClubApplyExample example);

    int deleteByExample(ClubApplyExample example);

    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(ClubApply record);

    int insertOrUpdate(ClubApply record);

    int insertOrUpdateSelective(ClubApply record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(ClubApply record);

    List<ClubApply> selectByExample(ClubApplyExample example);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    ClubApply selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ClubApply record, @Param("example") ClubApplyExample example);

    int updateByExample(@Param("record") ClubApply record, @Param("example") ClubApplyExample example);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ClubApply record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(ClubApply record);

    int updateBatch(List<ClubApply> list);

    int updateBatchSelective(List<ClubApply> list);

    int batchInsert(@Param("list") List<ClubApply> list);
}